package com.first.module.acm.service.impl;

import java.util.List;

import com.first.core.service.impl.BaseServiceImpl;
import com.first.module.acm.dao.DepartmentDao;
import com.first.module.acm.model.Department;
import com.first.module.acm.service.DepartmentService;

public class DepartmentServiceImpl extends BaseServiceImpl<Department>
  implements DepartmentService
{
  private DepartmentDao dao;

  public DepartmentServiceImpl(DepartmentDao dao)
  {
    super(dao);
    this.dao = dao;
  }

  public List<Department> findByParentId(String parentId) {
    return this.dao.findByParentId(parentId);
  }

  public List<Department> findByDepName(String depName) {
    return this.dao.findByDepName(depName);
  }

  public List<Department> findByPath(String path) {
    return this.dao.findByPath(path);
  }
}

